package org.example.erat.visualization;

import org.example.erat.model.ReportAnalyzer;

import java.util.Map;

// 具体抽象部分 - 折线图生成器
public class LineChartGenerator extends ChartGenerator {
    public LineChartGenerator(ChartImplementor implementor) {
        super(implementor);
    }

    @Override
    public void generateSubmissionRateChart(ReportAnalyzer analyzer) {
        Map<Integer, Double> rates = analyzer.getSubmissionRates();
        implementor.createLineChart(rates, "实验提交率统计", "实验编号", "提交率(%)");
    }
}
